home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2002-12-05 | 1.6 KB | 47 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="6"
- "COUNT"="1"
- "UIPATH"="Internet\Internet Information Server\System"
- "NAME"="Web Printing"
- "VERSION"="1.00"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Enable Web Printing feature"
- "DESCRIPTION 1"="The Internet Information Server (IIS) is normally configured with a pre-install vpath /printers that allow Internet Printing."
- "DESCRIPTION 2"="If your IIS is connected to the internet, and you do not want to have this functionality simply turn off the Internet Printing.
- "DESCRIPTION 3"="Note #1: You need to stop and restart the IIS so this change can take effect."
- "DESCRIPTION 4"="Note #2: This setting has no effect on computers where no IIS is installed."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="see http://support.microsoft.com/default.aspx?scid=KB;en-us;q296576 "
-
-
- sPC="HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers\DisableWebPrinting"
-
- 'Called when the Plugin is started
- Sub Plugin_Initialize
- i=RegReadValue(sPC)
- if i=0 or IsEmpty(i) then SetUIElement 1,true
- End Sub
-
- 'Called when the Plugin should validate the Data the user has entered
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- 'Called when the Plugin should apply the changes
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- if RegValueExists(sPC) then
- Call RegDeleteValue(sPC)
- end if
- else
- Call RegWriteValue(sPC,1,2)
- end if
-
- End Sub
-
- 'Called when the Plugin is about to be removed from memory
- Sub Plugin_Terminate
- End Sub
-